.class Les/nu$d$a;
.super Ljava/lang/Thread;
.source "PermMgrService.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/nu$d;->onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/os/IBinder;

.field final synthetic b:Les/nu$d;


# direct methods
.method constructor <init>(Les/nu$d;Landroid/os/IBinder;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/nu$d$a;->b:Les/nu$d;

    iput-object p2, p0, Les/nu$d$a;->a:Landroid/os/IBinder;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .line 1
    new-instance v0, Les/ou;

    iget-object v1, p0, Les/nu$d$a;->a:Landroid/os/IBinder;

    invoke-direct {v0, v1}, Les/ou;-><init>(Landroid/os/IBinder;)V

    const/4 v1, 0x0

    .line 2
    :try_start_0
    invoke-virtual {v0}, Les/ou;->s()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 3
    new-instance v0, Les/nu$d$a$a;

    invoke-direct {v0, p0, v2}, Les/nu$d$a$a;-><init>(Les/nu$d$a;Z)V

    invoke-static {v0}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    goto :goto_5

    .line 4
    :cond_0
    invoke-virtual {v0}, Les/ou;->r()I

    move-result v2

    const/4 v3, 0x4

    const/4 v4, 0x3

    if-eqz v2, :cond_1

    if-ne v2, v4, :cond_7

    .line 5
    :cond_1
    invoke-virtual {v0, v1}, Les/ou;->c(Z)Z
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_2

    :cond_2
    :goto_0
    const-wide/16 v5, 0x32

    .line 6
    :try_start_1
    invoke-static {v5, v6}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_2

    .line 7
    :catch_0
    :try_start_2
    invoke-virtual {v0}, Les/ou;->r()I

    move-result v2
    :try_end_2
    .catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_2} :catch_2

    const/4 v5, 0x1

    if-ne v2, v5, :cond_3

    goto :goto_0

    :cond_3
    if-ne v2, v4, :cond_4

    goto :goto_2

    :cond_4
    const/4 v5, 0x2

    if-ne v2, v5, :cond_6

    const/4 v5, 0x0

    :goto_1
    const/16 v6, 0x14

    if-ge v5, v6, :cond_7

    const-wide/16 v6, 0x64

    .line 8
    :try_start_3
    invoke-static {v6, v7}, Ljava/lang/Thread;->sleep(J)V
    :try_end_3
    .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Landroid/os/RemoteException; {:try_start_3 .. :try_end_3} :catch_2

    .line 9
    :catch_1
    :try_start_4
    invoke-virtual {v0}, Les/ou;->s()Z

    move-result v6

    if-eqz v6, :cond_5

    goto :goto_2

    :cond_5
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    :cond_6
    if-ne v2, v3, :cond_2

    :cond_7
    :goto_2
    if-eq v2, v4, :cond_9

    if-ne v2, v3, :cond_8

    goto :goto_3

    .line 10
    :cond_8
    invoke-virtual {v0}, Les/ou;->s()Z

    move-result v0

    goto :goto_4

    :cond_9
    :goto_3
    const/4 v0, 0x0

    .line 11
    :goto_4
    new-instance v2, Les/nu$d$a$b;

    invoke-direct {v2, p0, v0}, Les/nu$d$a$b;-><init>(Les/nu$d$a;Z)V

    invoke-static {v2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V
    :try_end_4
    .catch Landroid/os/RemoteException; {:try_start_4 .. :try_end_4} :catch_2

    goto :goto_5

    :catch_2
    move-exception v0

    .line 12
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    .line 13
    iget-object v0, p0, Les/nu$d$a;->b:Les/nu$d;

    iget-object v0, v0, Les/nu$d;->a:Les/nu$f;

    invoke-interface {v0, v1}, Les/nu$f;->a(Z)V

    :goto_5
    return-void
.end method
